import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useChannelStore = defineStore('counter', () => {
  // 当前频道id
  const channelId = ref(0)

  // 修改当前频道id函数
  const changeChannelId = (id: number) => {
    channelId.value = id
  }

  // 一次性返回
  return { channelId, changeChannelId }
})
